<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    .container{
      position: relative;
    }
    .box{
      height: 800px;
    }
    #div1{
      background: black;
      position: absolute;
      left: 0px;
      width: 200px;
    }
    #div2{
      background: blue;
      /* margin-left: 250px; */
      position: absolute;
      left: 220px;
      right: 220px;
    }
    #div3{
      background: yellow;
      position: absolute;
      right: 0px;
      width: 200px;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="box" id="div1"></div>
    <div class="box" id="div3"></div>
    <div class="box" id="div2"></div>
  </div>
</body>
</html>